import request from "@/utils/request";

// 新增公告
export const upload = (data) => {
  return request.post("notice/upload", data);
};

// 获取公告列表
export const list = () => {
  return request.get("notice/list");
};

// 删除公告
export const del = (id) => {
  return request.delete(`notice/delete/${id}`);
};
